<?php
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
    die('require PHP > 5.4 !');
}
include_once 'includes/common.php';
include_once 'includes/txprotect.php';
if ($conf['cdn_public'] == 1) {
    $cdnpublic = '//cdn.staticfile.org/';
} elseif ($conf['cdn_public'] == 2) {
    $cdnpublic = '//cdn.bootcss.com/';
} elseif ($conf['cdn_public'] == 3) {
    $cdnpublic = '//cdnjs.cloudflare.com/ajax/libs/';
} else {
    $cdnpublic = '//lib.baomitu.com/';
}
if (!empty($conf['cdn_private'])) {
    $cdnprivate = '//' . $conf['cdn_private'] . '/';
} else {
    $cdnprivate = null;
}
require_once SYSTEM_ROOT . 'lib/Template.php';
$act = isset($_GET['act']) ? $_GET['act'] : 'index';
$template = new Template();
$loadfile = $template->load($act);
include $loadfile;

/************
 * 当你看到我时你应该要学会自定义模板
 * 如上所示 act为模板内文件名 如调整到a.php  则act=a
 * 加载模板参数？请使用loadConfig() 模板根目录放config.php 内容请看默认模板config演示
 * 加载块文件？ 请使用loadRoute() 模板根目录放config.php 内容请看默认模板config演示
 * 判断模块是否存在？ 请使用exists(模块名称)
 ***********/
